package com.ljp.chat.service;

import com.ljp.chat.entity.pojo.Account;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LvJunPeng
 * @since 2022-11-02
 */
public interface AccountService extends IService<Account> {

    /**
     * Login string.
     * 用户登陆
     *
     * @param account  the account      登陆账号
     * @param password the password     密码
     * @return the string
     */
    String login(String account, String password);

    /**
     * Update account boolean.
     * 更新账号信息
     *
     * @param account the account           账号信息
     * @return the boolean
     * @throws Exception the exception
     */
    boolean updateAccount(Account account) throws Exception;

}
